import { Http } from '@/utils/request';
import { LoginParams, LoginRes } from './types';

export const getMenu = () => {
  return Http('/system/menu/getRouters');
};

export const Login = (data: LoginParams) => {
  return Http<Res<LoginRes>>('/auth/login', {
    method: 'POST',
    data,
  });
};
